package com.yelobblog.yelobblog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yelobblog.yelobblog.domain.entity.logs;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.GetMapping;

@Mapper
public interface logsMapper extends BaseMapper<logs> {
    @Select("SELECT * FROM logs ORDER BY createTime DESC")
    Page<logs> getLogs(Page<?> page);
}
